const path = require("path");
module.exports= {
    lintOnSave: false,
    publicPath: process.env.ENV === 'production' ? './' : '/',
    outputDir: 'dist',
    assetsDir: 'static',
    productionSourceMap: false,
    pluginOptions: {
        'style-resources-loader': {
            'preProcessor': 'scss',
            'patterns': [
                // 文件路径根据实际情况编写
                path.resolve(__dirname, '@/assets/css/*.scss'),
            ]
        }
    },
    css: {
        loaderOptions: {
            scss: {
                // 文件路径根据实际情况编写
                prependData: `@import "@/assets/css/variable.scss";`
            }
        }
    }
}

